import axios from "@/utils/http";
import server from "@/utils/request";
//获取光照列表
export const getLightList = (data) => {
    return axios.get(`/sunshine/query?pageNum=${data.pageNum}&pageSize=${data.pageSize}`);
};
//查询光照列表
export const queryLightList = (data) => {
    return axios.get(`/sunshine/query?${data.searchClass}=${data.searchValue}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`);
};
// 删除光照列表
export const deleteLightList = (data) => {
    return axios.delete(`/sunshine/delete?lightlid=${data.lightlid}`);
};
// 新增光照列表
export const addLightList = (data) => {
    return axios.post("/sunshine/add", data);
};
// 修改光照列表
export const updateLightList = (data) => {
    return axios.put("/sunshine/update", data);
};
//查询光照设备状态
export const queryLightEquipment = () => {
    return axios.get(`/sunshine/lightdevice?`);
};
//查询植物名和id
export const queryPlantNameAndId = () => {
    return axios.get("//sunshine/querygrowth");
};
